// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * AmazonSettlementReport
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "amazon_settlement_report", autoResultMap = true)
@Schema(title = "亚马逊结算中心-交易明细")
public class AmazonSettlementReport implements Serializable {

  /**
   * 订单编号
   */
  @TableField(value = "`amazon_order_id`")
  @Schema(title = "订单编号")
  private String amazonOrderId;

  /**
   * 店铺
   */
  @TableField(value = "`sid`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long sid;

  /**
   * 店铺名
   */
  @TableField(value = "`store_name`")
  @Schema(title = "店铺名")
  private String storeName;

  /**
   * 亚马逊店铺id
   */
  @TableField(value = "`seller_id`")
  @Schema(title = "亚马逊店铺id")
  private String sellerId;

  /**
   * 国家
   */
  @TableField(value = "`country_code`")
  @JoinField(SysCountry.class)
  @Schema(title = "国家")
  private Long countryCode;

  /**
   * 报告类型
   */
  @TableField(value = "`account_type`")
  @Schema(title = "报告类型")
  private String accountType;

  /**
   * 配送方式
   */
  @TableField(value = "`fulfillment`")
  @Schema(title = "配送方式")
  private String fulfillment;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 来源
   */
  @TableField(value = "`event_type`")
  @Schema(title = "来源")
  private String eventType;

  /**
   * MSKU
   */
  @TableField(value = "`seller_sku`")
  @Schema(title = "MSKU")
  private String sellerSku;

  /**
   * 交易类型
   */
  @TableField(value = "`type`")
  @Schema(title = "交易类型")
  private String type;

  /**
   * 结算时间
   */
  @TableField(value = "`posted_date_locale`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "结算时间")
  private java.util.Date postedDateLocale;

  /**
   * 币种
   */
  @TableField(value = "`currency_code`")
  @Schema(title = "币种")
  private String currencyCode;

  /**
   * 金额
   */
  @TableField(value = "`currency_amount`")
  @Schema(title = "金额")
  private java.math.BigDecimal currencyAmount;

  /**
   * 数量
   */
  @TableField(value = "`quantity`")
  @Schema(title = "数量")
  private Integer quantity;

  /**
   * 结算状态
   */
  @TableField(value = "`processing_status`")
  @Schema(title = "结算状态")
  private String processingStatus;

  /**
   * 转账状态
   */
  @TableField(value = "`fund_transfer_status`")
  @Schema(title = "转账状态")
  private String fundTransferStatus;

  /**
   * 结算编号
   */
  @TableField(value = "`fid`")
  @Schema(title = "结算编号")
  private String fid;

  /**
   * Settlement ID
   */
  @TableField(value = "`settlement_id`")
  @Schema(title = "Settlement ID")
  private String settlementId;

  /**
   * SKU
   */
  @TableField(value = "`local_sku`")
  @Schema(title = "SKU")
  private String localSku;

  /**
   * 品名
   */
  @TableField(value = "`local_name`")
  @Schema(title = "品名")
  private String localName;

  /**
   * 修改时间
   */
  @TableField(value = "`gmt_modified`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "修改时间")
  private java.util.Date gmtModified;

  /**
   * 卖方为订单定义的标识符
   */
  @TableField(value = "`merchant_order_item_id`")
  @Schema(title = "卖方为订单定义的标识符")
  private String merchantOrderItemId;

  /**
   * 市场名称
   */
  @TableField(value = "`marketplace_name`")
  @Schema(title = "市场名称")
  private String marketplaceName;

  /**
   * 财务事件组id
   */
  @TableField(value = "`financial_event_group_id`")
  @Schema(title = "财务事件组id")
  private String financialEventGroupId;
}
